It's less copy/paste, works everywhere, etc.
Also fix some missing #include "config.h".
AM_INIT_AUTOMAKE([1.11 -Wno-portability foreign no-define tar-ustar no-dist-gzip dist-xz])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
+AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_PROG_CC
* Author: Colin Walters <walters@verbum.org>
*/
-/* for mkdtemp */
-#define _GNU_SOURCE
-
#include "config.h"
#include "ostree.h"
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include "ostree.h"
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include "ostree.h"
#include "config.h"
-#define _GNU_SOURCE
-
#include "otutil.h"
#include <gio/gio.h>
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
#include "config.h"
#include "ot-admin-functions.h"
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
#include "config.h"
#include "ot-admin-functions.h"
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
#include "config.h"
#include "ot-admin-functions.h"
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
+#include "config.h"
#include <stdarg.h>
#include <errno.h>
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-#define _GNU_SOURCE
+
+#include "config.h"
+
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/stat.h>
* Author: Colin Walters <walters@verbum.org>
*/
-#define _GNU_SOURCE
+#include "config.h"
#include <string.h>
#include <stdio.h>